package com.ruoyi.erpconfig.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.erpconfig.mapper.TestCompanyMapper;
import com.ruoyi.erpconfig.domain.TestCompany;
import com.ruoyi.erpconfig.service.ITestCompanyService;

/**
 * 测试公司配置Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-12-21
 */
@Service
public class TestCompanyServiceImpl implements ITestCompanyService 
{
    @Autowired
    private TestCompanyMapper testCompanyMapper;

    /**
     * 查询测试公司配置
     * 
     * @param testCompanyId 测试公司配置主键
     * @return 测试公司配置
     */
    @Override
    public TestCompany selectTestCompanyByTestCompanyId(Long testCompanyId)
    {
        return testCompanyMapper.selectTestCompanyByTestCompanyId(testCompanyId);
    }

    /**
     * 查询测试公司配置列表
     * 
     * @param testCompany 测试公司配置
     * @return 测试公司配置
     */
    @Override
    public List<TestCompany> selectTestCompanyList(TestCompany testCompany)
    {
        return testCompanyMapper.selectTestCompanyList(testCompany);
    }

    /**
     * 新增测试公司配置
     * 
     * @param testCompany 测试公司配置
     * @return 结果
     */
    @Override
    public int insertTestCompany(TestCompany testCompany)
    {
        return testCompanyMapper.insertTestCompany(testCompany);
    }

    /**
     * 修改测试公司配置
     * 
     * @param testCompany 测试公司配置
     * @return 结果
     */
    @Override
    public int updateTestCompany(TestCompany testCompany)
    {
        return testCompanyMapper.updateTestCompany(testCompany);
    }

    /**
     * 批量删除测试公司配置
     * 
     * @param testCompanyIds 需要删除的测试公司配置主键
     * @return 结果
     */
    @Override
    public int deleteTestCompanyByTestCompanyIds(Long[] testCompanyIds)
    {
        return testCompanyMapper.deleteTestCompanyByTestCompanyIds(testCompanyIds);
    }

    /**
     * 删除测试公司配置信息
     * 
     * @param testCompanyId 测试公司配置主键
     * @return 结果
     */
    @Override
    public int deleteTestCompanyByTestCompanyId(Long testCompanyId)
    {
        return testCompanyMapper.deleteTestCompanyByTestCompanyId(testCompanyId);
    }
}
